#!/bin/sh -e

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin

make
make DESTDIR="$1" install
mkdir -p "$1/etc/acpi/events"

# Install services.
clsv -d "$1" acpid.run
